Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuke-transition

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-transition

渐变

  • 2.3.12
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-57.89%
Maintainers
2
Weekly downloads
 
Created
Source

Transition

  • category: API
  • chinese: 渐变
  • type: API能力

API

Transition(domNode, styles, options, callback)

  • domNode: 可以通过 findDOMNode(this.refs.box) 找到。
  • styles:object,例如 {transform: 'rotate(720deg)'} {transform: 'translate(150,150)'}

注意:translate(150,150) 中,150 的单位是rem,组件将自动在 h5 下转换为对应的 px 值并加上 px 单位

  • options: 动画参数:
{
    timingFunction: 'ease-in-out',//时间函数,可选 //ease-in,ease-in-out,ease-out,linear,cubic-bezier
    delay: 0, //延迟,单位 ms
    duration: 500,  //持续时间 单位 ms
    needLayout:false //是否需要更新布局,默认 false
}
  • callback: 回调

其他

  • bug、建议联系 @翊晨
  • 钉钉交流群

Keywords

FAQs

Package last updated on 26 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc